# -*- coding: utf-8 -*-

'''
Created on Dec 2, 2010

@author: namikata
'''
import mEngineConfig
import mEngine

if __name__ == '__main__':
    #creamos un nuevo config para la pantalla
    #cuando se pone full_screen a true, se ignoran la anchura y la altura
    config = mEngineConfig.cEngineConfig()
    config.caption = "Cosmo-r"
    #arrancamos el motor
    mEngine.initialize(config)
    
    #añadir aqui todas las escenas y capas que forman el juego
    
    #arrancar la aplicacion
    mEngine.run()

"""def draw_scene():
    global kitten, texture
 
    # Draw the scene, assuming the fixed resolution viewport and projection
 
    # have been set up.
 
    glClearColor(0, 0, 0, 0)
 
    glClear(GL_COLOR_BUFFER_BIT)
    f=kitten.width
 
    glLoadIdentity()
    glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL)
    glEnable(GL_TEXTURE_2D)
 
    w, h = target_resolution
 
    glTranslatef(w/2, h/2, 0)
 
    #glRotatef(rotate, 0, 0, 1)
 
    glColor3f(1, 0, 1)
 
    s = min(w, h) / 4
 
    glRectf(-s, -s, s, s)
    glBindTexture(GL_TEXTURE_2D, texture.id)
    glBegin(GL_POLYGON)
    glVertex3f (-s, -s, 0.0);
    glVertex3f (s, -s, 0.0);
    glVertex3f (s, s, 0.0);
    glVertex3f (-s, s, 0.0);
    glEnd()"""